# -*- coding:utf8 -*-
from django.conf.urls import url

from wanpuzzle.common import views as comm_views

__author__ = 'Forcs'

urlpatterns = [
    #
    url(r'^product/(?P<app_token>\w+)$', comm_views.get_subjects),
    url(r'^subjects/(?P<app_token>\w+)$', comm_views.get_subjects),
    url(r'^subject/(?P<subject_code>\w+)$', comm_views.get_subject),
    # 支付信息
    url(r'^wpay/check/(?P<app_token>\w+)$', comm_views.check_pay),
    url(r'^wpay/getorder$', comm_views.request_order),
    url(r'^wpay/paynotify/(?P<provider>\S+)$', comm_views.pay_notify),
    url(r'^wpay/result/(?P<provider>\S+)$', comm_views.pay_result),
    url(r'^wpay/order/payed$', comm_views.get_order_payed),

    url(r'^sync/application$', comm_views.sync_application),
    url(r'^sync/subject$', comm_views.sync_subject),
    url(r'^sync/version$', comm_views.sync_version),
    url(r'^sync/resversion/(?P<app_token>\w+)$', comm_views.sync_app_res_version),

    url(r'^product/version/check/(?P<app_token>\w+)$', comm_views.check_app_version),
    url(r'^product/resversion/check/(?P<app_token>\w+)$', comm_views.check_app_res_version),

    url(r'^config/track/host$', comm_views.get_config_track_host),

]
